<div class="box create rounded">

	<a class="button good" href="<?php echo site_url(SITE_AREA .'/content/match/create'); ?>">
		<?php echo lang('match_create_new_button'); ?>
	</a>

	<h3><?php echo lang('match_create_new'); ?></h3>

	<p><?php echo lang('match_edit_text'); ?></p>

</div>

<br />

<?php if (isset($records) && is_array($records) && count($records)) : ?>
				
	<h2>match</h2>
	<table>
		<thead>
			<tr>
			
		<th>League Team Id1</th>
		<th>League Team Id2</th>
		<th>Stadium Name</th>
		<th>Stadium Location</th>
		<th>Start Time Day</th>
		<th>Start Time Month</th>
		<th>Start Time Year</th>
		<th>Time Zone</th>
		<th>Score</th>
		<th>Start Time Hour</th>
		<th>Start Time Minute</th>
		<th>Start Time Second</th>
		
			<th><?php echo lang('match_actions'); ?></th>
			</tr>
		</thead>
		<tbody>
		
		<?php foreach ($records as $record) : ?>
			<tr>
				
				<td><?php echo $record->league_team_id1?></td>
				<td><?php echo $record->league_team_id2?></td>
				<td><?php echo $record->stadium_name?></td>
				<td><?php echo $record->stadium_location?></td>
				<td><?php echo $record->start_time_day?></td>
				<td><?php echo $record->start_time_month?></td>
				<td><?php echo $record->start_time_year?></td>
				<td><?php echo $record->time_zone?></td>
				<td><?php echo $record->score?></td>
				<td><?php echo $record->start_time_hour?></td>
				<td><?php echo $record->start_time_minute?></td>
				<td><?php echo $record->start_time_second?></td>
				<td><?php echo anchor(SITE_AREA .'/content/match/edit/'. $record->match_id, lang('match_edit'), '') ?></td>
			</tr>
		<?php endforeach; ?>
		</tbody>
	</table>
<?php endif; ?>